package orm;

import java.util.Date;

/**
 * AbstractMsg entity provides the base persistence definition of the Msg
 * entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractMsg implements java.io.Serializable {

	// Fields

	private long msgid;
	private User user;
	private String msgtitle;
	private String msgcontent;
	private Date msgcreatetime;
	private long receiverid;
	private Integer readstatus;

	// Constructors

	/** default constructor */
	public AbstractMsg() {
	}

	/** minimal constructor */
	public AbstractMsg(String msgtitle, String msgcontent, Date msgcreatetime,
			long receiverid) {
		this.msgtitle = msgtitle;
		this.msgcontent = msgcontent;
		this.msgcreatetime = msgcreatetime;
		this.receiverid = receiverid;
	}

	/** full constructor */
	public AbstractMsg(User user, String msgtitle, String msgcontent,
			Date msgcreatetime, long receiverid, Integer readstatus) {
		this.user = user;
		this.msgtitle = msgtitle;
		this.msgcontent = msgcontent;
		this.msgcreatetime = msgcreatetime;
		this.receiverid = receiverid;
		this.readstatus = readstatus;
	}

	// Property accessors

	public long getMsgid() {
		return this.msgid;
	}

	public void setMsgid(long msgid) {
		this.msgid = msgid;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getMsgtitle() {
		return this.msgtitle;
	}

	public void setMsgtitle(String msgtitle) {
		this.msgtitle = msgtitle;
	}

	public String getMsgcontent() {
		return this.msgcontent;
	}

	public void setMsgcontent(String msgcontent) {
		this.msgcontent = msgcontent;
	}

	public Date getMsgcreatetime() {
		return this.msgcreatetime;
	}

	public void setMsgcreatetime(Date msgcreatetime) {
		this.msgcreatetime = msgcreatetime;
	}

	public long getReceiverid() {
		return this.receiverid;
	}

	public void setReceiverid(long receiverid) {
		this.receiverid = receiverid;
	}

	public Integer getReadstatus() {
		return this.readstatus;
	}

	public void setReadstatus(Integer readstatus) {
		this.readstatus = readstatus;
	}

}